package com.clw.practice.jol;

import org.openjdk.jol.info.ClassLayout;

public class Demo1 {
	//	-XX:+UseCompressedOops  // 开启指针压缩
	//	-XX:-UseCompressedOops  // 关闭指针压缩
	public static void main(String[] args) {
		
		synchronized (Demo1.class) {
			Car car = Car.builder().id(1).type("SUV").level('A').price(22.22).build();
			System.out.println(ClassLayout.parseInstance(car).toPrintable());
		}
		
		
		int[] array = new int[3];
		array[0] = 11;
		array[1] = 22;
		array[2] = 33;
		System.out.println(ClassLayout.parseInstance(array).toPrintable());

	}

}
